<?php
       	  
        $xcrud = Xcrud::get_instance();
        $xcrud->table('users');
		$xcrud->relation('group_id','user_group','id','name');
		 $xcrud->change_type('avatar', 'remote_image');
                   $xcrud->fields('username,name,email,gioithieu,avatar,status,active,group_id,facebook,facebook_id,upload', false, 'My Information');
				   $xcrud->fields('views,comments,likes,inbox,contact_email,contact_website,contact_yahoo,contact_skype,contact_phone', false, 'Static');
                   $xcrud->fields('date_registered,date_login,ip_register,ip_login,changepass', false, 'Other');
				   $xcrud->label(array("gioithieu"=>"Giới Thiệu"));
                 $xcrud->theme('bootstrap');
                 $xcrud->table_name('User Manage System');
				 $xcrud->show_primary_ai_column(true);
         echo $xcrud->render();


?>
